<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="utf-8" lang="utf-8">
<head>
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>| Church</title>
		<link rel="stylesheet" type="text/css" href="/theme/<?=$_theme?>/common/css/common.css" />
	<link rel="stylesheet" type="text/css" href="/theme/<?=$_theme?>/common/css/jquery.ui.lastest.css" />
	<!--[if IE 6]><link rel="stylesheet" type="text/css" href="/theme/<?=$_theme?>/common/css/ie6.css" /><![endif]-->
	<!--[if IE 7]><link rel="stylesheet" type="text/css" href="/theme/<?=$_theme?>/common/css/ie7.css" /><![endif]-->

	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jquery.lastest.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jquery.ui.lastest.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/publisher.js"></script>
	
	<!--[if IE 6]>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/DD_belatedPNG_0.0.8a.js"></script>
	<script type="text/javascript">DD_belatedPNG.fix('.png24');</script>

	<script type="text/javascript">
		try{
			document.execCommand('BackgroundImageCache', false, true);
		}catch(e){}
	</script>

	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/minmax.js"></script>
	<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/fixed-1.8.js"></script>
	<![endif]-->
	
	<script type="text/javascript" src="/asset/jquery-visualize/js/enhance.js"></script>	
	
	<script type="text/javascript">
	//<![CDATA[
	$(function(){

		$(".tab_day a").click(function(e){
			var index = $(".tab_day a").index($(this));
			e.preventDefault();
			$(".tab_day a").removeClass('on');
			$(".tab_day a").eq(index).addClass('on');
			
			$.ajax({
				type: "GET",
				url: "/chmanager/ajax_weblog",
				data: "stat="+$(".tab_day a").eq(index).attr("title"),
				success: function(data){
					// Run capabilities test
					enhance({
						loadScripts: [
							{src: '/asset/jquery-visualize/js/excanvas.js', iecondition: 'all'},
							'/asset/jquery-visualize/js/jquery.js',
							'/asset/jquery-visualize/js/visualize.jQuery.js',
							'/asset/jquery-visualize/js/index.js'
						],
						loadStyles: [
							'/asset/jquery-visualize/css/work-visualize.css',
							'/asset/jquery-visualize/css/work-visualize-light.css'
						]	
					});
					$(".graph_type01").html(data);  
				},
				error:function(error){alert('에러');}
			});	
		}).filter(":first").click();
		
	});	
	//]]>
	</script>
	</head>

<body id="main" class="topEnd">
<!--[s] Header -->
<div id="header">
	<div class="bg_black"><!-- 검정 배경 --></div>
	<h1><a href="/chmanager/index"><img src="/theme/<?=$_theme?>/images/common/h1_logo.gif" alt="church." /></a></h1>
	<!--[s] 한 줄 공지 -->
	<dl>
		<dt><strong>공지사항</strong></dt>
		<dd>서버 점검으로 인한 접속제한안내</dd>
	</dl>
	<!--[e] 한 줄 공지 -->
	<!--[s] 상단 링크 -->
	<div class="top_link">
		<ul class="c_box">
			<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/common/btn_top_sch.gif" alt="검색" /></a></li>
			<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/common/btn_top_web.gif" alt="PC" /></a></li>
			<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/common/btn_top_mobile.gif" alt="Mobile" /></a></li>
			<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/common/btn_top_link.gif" alt="링크" /></a></li>
		</ul>
	</div>
	<!--[e] 상단 링크 -->
	<!--[s] Gnb -->
	<div id="menu_gnb">
		<ul class="c_box">
			<?php
			//Get the XML document loaded into a variable
			$xml = file_get_contents('./theme/'.$_theme.'/admin.xml');
			//Set up the parser object
			$parser = new XMLParser($xml);

			//Work the magic...
			$parser->Parse();
			$_topIndex = 0;
			$_leftIndex =0; 	
			foreach($parser->document->menu as $menu){
				echo "<li><a href=\"".$menu->hyperlink[0]->tagData."\"><img src=\"/theme/{$_theme}/images/common/{$menu->menuimage[0]->tagData}\" alt=\"{$menu->menuname[0]->tagData}\" /></a></li>\n";				
				foreach($parser->document->menu[$_topIndex]->menuitem as $left) {	
					if(strpos(uri_string(),$left->hyperlink[0]->tagData) > 0 ){
						$_leftIndex = $_topIndex;
					break;	
					}
				}
				$_topIndex++;	
				
			}
			?>
		</ul>
	</div>
	<!--[e] Gnb -->
</div>
<!--[e] Header -->
<!--[s] Container -->
<div id="container" class="c_box">
	<!--[s] 페이지 로케이션 -->
	<div class="pageLocation">
		<ul class="c_box">
			<li class="home">HOME</li>
			<li>사이트관리</li>
		</ul>
	</div>
	<!--[e] 페이지 로케이션 -->

	<!--[s] 좌측 영역 -->
	<div id="con_left">
		<!--[s] 사이트관리 -->
		<div class="box_type01">
			<h2><img src="/theme/<?=$_theme?>/images/main/h2_m01.gif" alt="사이트관리" /></h2>
			<p class="icon"><a href="javascript:void(0);" class="icon_m01">사이트관리</a></p>

			<table cellspacing="0" summary="사이트관리">
				<caption>사이트관리</caption>
				<tbody>
				<tr>
					<th scope="row" width="51"><p>버전</p></th>
					<td>
						<div>1.01</div>
					</td>
				</tr>
				<tr>
					<th scope="row"><p>도메인</p></th>
					<td>
						<div>church.co.kr</div>
					</td>
				</tr>
				<tr>
					<th scope="row"><p>만료일</p></th>
					<td>
						<div>
							2013.03.31 (<strong class="point">658</strong>일전)
							<a href="javascript:void(0);" class="btn btn_type_i i01">연장</a>
						</div>
					</td>
				</tr>
				<tr>
					<th scope="row"><p>SMS</p></th>
					<td>
						<div>
							120 / -115건
							<a href="javascript:void(0);" class="btn btn_type_i i02">충전</a>
						</div>
					</td>
				</tr>
				<tr>
					<th scope="row"><p>용량</p></th>
					<td>
						<div>
							150M / 1G
							<a href="javascript:void(0);" class="btn btn_type_i i03">신청</a>
						</div>
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<!--[e] 사이트관리 -->

		<!--[s] 부가서비스 이용현황 -->
		<div class="box_type01 mt10">
			<h2><img src="/theme/<?=$_theme?>/images/main/h2_m02.gif" alt="부가서비스 이용현황" /></h2>
			<p class="icon"><a href="javascript:void(0);" class="icon_m01">부가서비스 이용현황</a></p>

			<table cellspacing="0" summary="부가서비스 이용현황">
				<caption>부가서비스 이용현황</caption>
				<tbody>
				<tr>
					<td>
						<div>
							설교방송시스템
							<a href="javascript:void(0);" class="btn btn_type_i i03">신청</a>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							SMS문자
							<a href="javascript:void(0);" class="btn btn_type_i i05">사용</a>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							커뮤니티
							<a href="javascript:void(0);" class="btn btn_type_i i03">신청</a>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							교회행정시스템
							<a href="javascript:void(0);" class="btn btn_type_i i03">신청</a>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							모바일홈페이지
							<a href="javascript:void(0);" class="btn btn_type_i i03">신청</a>
						</div>
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<!--[e] 부가서비스 이용현황 -->

		<!--[s] Banner -->
		<div class="banner">
			<ul>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_left_banner01.gif" alt="쳐치 길라잡이" /></a></li>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_left_banner02.gif" alt="쳐치 등록요청" /></a></li>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_left_banner03.gif" alt="쳐치 제작의뢰" /></a></li>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_left_banner04.gif" alt="쳐치 광고문의" /></a></li>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_left_banner05.gif" alt="쳐치 뉴스레터" /></a></li>
			</ul>
		</div>
		<!--[e] Banner -->
	</div>
	<!--[e] 좌측 영역 -->

	<!--[s] 센터 영역 -->
	<div id="con_center">
		<!--[s] 접속 통계 -->
		<div class="box_type01">
			<h2><img src="/theme/<?=$_theme?>/images/main/h2_m03.gif" alt="접속 통계" /></h2>
			<ul class="tab_day">
				<li><a href="javascript:void(0);" title="month">month</a></li>
				<li><a href="javascript:void(0);" title="week">week</a></li>
				<li><a href="javascript:void(0);" title="day">day</a></li>
			</ul>

			<div class="graph_type01"></div>
			
		</div>
		<!--[e] 접속 통계 -->

		<!--[s] 신규 회원가입 -->
		<div class="box_type02 mt10">
			<h2><img src="/theme/<?=$_theme?>/images/main/h2_m04.gif" alt="신규 회원가입" /></h2>
			<p class="icon"><a href="/member/memberList" class="icon_m02">신규 회원가입</a></p>

			<table cellspacing="0" summary="신규 회원가입">
				<caption>신규 회원가입</caption>
				<thead>
				<tr>
					<th scope="col" width="25%">성명</th>
					<th scope="col">생년월일</th>
					<th scope="col" width="25%">연락처</th>
					<th scope="col" width="25%">가입일</th>
				</tr>
				</thead>
				<tbody>
				<?php 
					foreach($new_member as $row){
						$birth_date = ($row->birth_date) ? date('Y.m.d',mysqldatetime_to_timestamp($row->birth_date)) : '';
				?>
				<tr>
					<th scope="row"><p><?php echo $row->name;?></p></th>
					<td><div><?php echo $birth_date;?></div></td>
					<td><div><?php echo $row->hp;?></div></td>
					<td><div><?php echo date('Y.m.d',mysqldatetime_to_timestamp($row->reg_date));?></div></td>
				</tr>
				<?php 
					}
				?>
				<!--<<tr>
					<th scope="row"><p>이순신</p></th>
					<td><div>1999.05.15</div></td>
					<td><div>010-0000-0000</div></td>
					<td><div>2013.05.15</div></td>
				</tr>
				<tr>
					<th scope="row"><p>강감찬</p></th>
					<td><div>1999.05.15</div></td>
					<td><div>010-0000-0000</div></td>
					<td><div>2013.05.15</div></td>
				</tr>
				tr>
					<th scope="row"><p>을지문덕</p></th>
					<td><div>1999.05.15</div></td>
					<td><div>010-0000-0000</div></td>
					<td><div>2013.05.15</div></td>
				</tr>
				<tr>
					<th scope="row"><p>대조영</p></th>
					<td><div>1999.05.15</div></td>
					<td><div>010-0000-0000</div></td>
					<td><div>2013.05.15</div></td>
				</tr>  -->
				</tbody>
			</table>
		</div>
		<!--[e] 신규 회원가입 -->

		<!--[s] 최근 게시물 -->
		<div class="box_type02 mt10">
			<h2><img src="/theme/<?=$_theme?>/images/main/h2_m05.gif" alt="최근 게시물" /></h2>

			<table cellspacing="0" summary="최근 게시물">
				<caption>최근 게시물</caption>
				<thead>
				<tr>
					<th scope="col" width="18%">구분</th>
					<th scope="col">제목</th>
					<th scope="col" width="18%">작성자</th>
					<th scope="col" width="18%">등록일</th>
				</tr>
				</thead>
				<tbody>
				<tr>
					<th scope="row"><p>교회소식</p></th>
					<td class="tal"><div><a href="javascript:void(0);">서버 점검으로 인한 접속제한안내</a></div></td>
					<td><div>원종선</div></td>
					<td><div>2013.05.15</div></td>
				</tr>
				<tr>
					<th scope="row"><p>목사님동정</p></th>
					<td class="tal"><div><a href="javascript:void(0);">서버 점검으로 인한 접속제한안내</a></div></td>
					<td><div>원종선</div></td>
					<td><div>2013.05.15</div></td>
				</tr>
				<tr>
					<th scope="row"><p>교우소식</p></th>
					<td class="tal"><div><a href="javascript:void(0);">서버 점검으로 인한 접속제한안내</a></div></td>
					<td><div>원종선</div></td>
					<td><div>2013.05.15</div></td>
				</tr>
				<tr>
					<th scope="row"><p>자료실</p></th>
					<td class="tal"><div><a href="javascript:void(0);">서버 점검으로 인한 접속제한안내</a></div></td>
					<td><div>원종선</div></td>
					<td><div>2013.05.15</div></td>
				</tr>
				<tr>
					<th scope="row"><p>새가족</p></th>
					<td class="tal"><div><a href="javascript:void(0);">서버 점검으로 인한 접속제한안내</a></div></td>
					<td><div>원종선</div></td>
					<td><div>2013.05.15</div></td>
				</tr>
				</tbody>
			</table>
		</div>
		<!--[e] 최근 게시물 -->
	</div>
	<!--[e] 센터 영역 -->

	<!--[s] 우측 영역 -->
	<div id="con_right">
		<!--[s] 쳐치 공지사항 -->
		<div class="box_type01">
			<h2><img src="/theme/<?=$_theme?>/images/main/h2_m06.gif" alt="쳐치 공지사항" /></h2>
			<p class="icon"><a href="javascript:void(0);" class="icon_m02">쳐치 공지사항</a></p>

			<table cellspacing="0" summary="쳐치 공지사항">
				<caption>쳐치 공지사항</caption>
				<tbody>
				<tr>
					<td>
						<div>
							<a href="javascript:void(0);">서버 점검으로 인한 접속제한안내</a>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							<a href="javascript:void(0);">서버 점검으로 인한 접속제한안내</a>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							<a href="javascript:void(0);">서버 점검으로 인한 접속제한안내</a>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							<a href="javascript:void(0);">서버 점검으로 인한 접속제한안내</a>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							<a href="javascript:void(0);">서버 점검으로 인한 접속제한안내</a>
						</div>
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<!--[e] 쳐치 공지사항 -->

		<!--[s] 유지보수 진행사항 -->
		<div class="box_type01 mt10">
			<h2><img src="/theme/<?=$_theme?>/images/main/h2_m07.gif" alt="유지보수 진행사항" /></h2>
			<p class="icon"><a href="javascript:void(0);" class="icon_m01">유지보수 진행사항</a></p>

			<table cellspacing="0" summary="유지보수 진행사항">
				<caption>유지보수 진행사항</caption>
				<tbody>
				<tr>
					<td>
						<div>
							<a href="javascript:void(0);">유지보수 진행사항</a>
							<span class="btn btn_type_i i07">접수</span>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							<a href="javascript:void(0);">유지보수 진행사항</a>
							<span class="btn btn_type_i i06">진행</span>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							<a href="javascript:void(0);">유지보수 진행사항</a>
							<span class="btn btn_type_i i04">완료</span>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							<a href="javascript:void(0);">유지보수 진행사항</a>
							<span class="btn btn_type_i i06">진행</span>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div>
							<a href="javascript:void(0);">유지보수 진행사항</a>
							<span class="btn btn_type_i i04">완료</span>
						</div>
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<!--[e] 유지보수 진행사항 -->

		<!--[s] 행사일정 -->
		<div class="box_type01 mt10">
			<h2><img src="/theme/<?=$_theme?>/images/main/h2_m08.gif" alt="행사일정" /></h2>
			<div class="dateArea">
				<div class="dateCont">
					<a href="javascript:void(0);" class="prev">이전</a>
					<dl>
						<dt><img src="/theme/<?=$_theme?>/images/common/year_2013.gif" alt="2013" /></dt>
						<dd><img src="/theme/<?=$_theme?>/images/common/month_05.gif" alt="5" /></dd>
					</dl>
					<a href="javascript:void(0);" class="next">다음</a>
				</div>
			</div>
			<p class="icon"><a href="javascript:void(0);" class="icon_m02">행사일정</a></p>

			<table cellspacing="0" summary="행사일정">
				<caption>행사일정</caption>
				<tbody>
				<tr>
					<th scope="row" width="82"><p>17 / 09:00</p></th>
					<td>
						<div>총동원주일 예배</div>
					</td>
				</tr>
				<tr>
					<th scope="row" width="82"><p>17 / 09:00</p></th>
					<td>
						<div>총동원주일 예배</div>
					</td>
				</tr>
				<tr>
					<th scope="row" width="82"><p>17 / 09:00</p></th>
					<td>
						<div>총동원주일 예배</div>
					</td>
				</tr>
				<tr>
					<th scope="row" width="82"><p>17 / 09:00</p></th>
					<td>
						<div>총동원주일 예배</div>
					</td>
				</tr>
				<tr>
					<th scope="row" width="82"><p>17 / 09:00</p></th>
					<td>
						<div>총동원주일 예배</div>
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<!--[e] 행사일정 -->

		<!--[s] Banner -->
		<div class="banner">
			<ul>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_right_banner01.gif" alt="" /></a></li>
				<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/main/link_right_banner02.gif" alt="" /></a></li>
			</ul>
		</div>
		<!--[e] Banner -->
	</div>
	<!--[e] 우측 영역 -->
</div>
<!--[e] Container -->

<!--[s] Footer -->
<div id="footer">
	<div class="txt">
		<p><img src="/theme/<?=$_theme?>/images/common/footer_logo.gif" alt="church." /></p>
		<address class="mt6"><img src="/theme/<?=$_theme?>/images/common/footer_copy.gif" alt="COPYRIGHT &copy; CHURCH. ALL RIGHTS RESERUED. Design by WEBTER Communication, Inc." /></address>
	</div>
	<ul class="c_box">
		<li><a href="javascript:void(0);"><img src="/theme/<?=$_theme?>/images/common/footer_home.gif" alt="home" /></a></li>
		<li><a href="javascript:scrollTopAc();"><img src="/theme/<?=$_theme?>/images/common/footer_top.gif" alt="top" /></a></li>
	</ul>
</div>
<!--[e] Footer --></body>
</html>